package com.huawei;

import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;

public class Ch02 {

    public static void main(String[] args) throws Exception {
        File file = new File("src/main/java/com/huawei/StudentDaoImpl.java");
        OutputStream os =new FileOutputStream(file);

        // 所有的框架 根据配置文件会自动生成很多的类
        String myPackage="package com.huawei";
        String driver=myPackage+";\n" +
                "\n" +
                "public class StudentDaoImpl {\n" +
                "}";
        byte[] xy = driver.getBytes();

        os.write(xy);

        os.close();
    }
}
